package org.duang.plugins;

import org.duang.config.Config;


final public class LogBackPlugin implements IPlugin {

	private LogBackPlugin() {
		
	}
	private static LogBackPlugin instance = new LogBackPlugin();
	public static  LogBackPlugin getInstance() {
		return instance;
	}
	
	public void start() throws Exception{
		String level = Config.getLogBackLevel();
		String className = Config.getLogBackFactoryExample();
		org.duang.logs.Logger.init(level, className);
	}

	public void stop() throws Exception{
		org.duang.logs.Logger.stop();
	}
}
